package cn.xuanxuanyuhua.crm.domain;

import lombok.*;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin;

    //关联部门
    private Department department;

    //关联角色
    private List<Role> roles = new ArrayList<>();

    //关联权限
    private List<Permission> permissions = new ArrayList<>();

}